package com.myh.gulimall.authserver.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Description: // 类说明，在创建类时要填写
 * @ClassName: MyWebMvcConfig    // 类名，会自动填充
 * @Author: MYH          // 创建者
 * @Date: 2024/5/28 14:19   // 时间
 * @Version: 1.0     // 版本
 */
@Configuration
public class MyWebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
       registry.addViewController("/testCode.html").setViewName("testCode");
    }
}
